package com.ymatou.iapi.shoppingcart.testcase;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;

import com.ymatou.iapi.shoppingcart.parameter.GetShoppingCartListBean;
import com.ymatou.iapi.shoppingcart.parameter.ShoppingCompletedBean;
import com.ymatou.iapi.shoppingcart.service.GetShoppingCartListCall;
import com.ymatou.iapi.shoppingcart.service.ShoppingCompletedCall;
import com.ymt.core.tool.Logger;
import com.ymttest.utils.EnvSetup;

public class Ts_ShoppingCompleted {
	
	private static ShoppingCompletedBean shoppingCompletedBean;
	private static ShoppingCompletedCall shoppingCompletedCall;
	
	private static int sellerId = Integer.parseInt(EnvSetup.getData("zhangyi_seller002_id"));
	private static String sellerName = EnvSetup.getData("zhangyi_seller002_name");
	
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("下单完成后删除购物车商品");
	}

	@Before
	public void caseUp() throws Exception {
		shoppingCompletedBean = new ShoppingCompletedBean();
		shoppingCompletedCall = new ShoppingCompletedCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(shoppingCompletedCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
}
